package com.rr;

import com.alibaba.nacos.api.annotation.NacosProperties;
import com.alibaba.nacos.spring.context.annotation.discovery.EnableNacosDiscovery;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author RR
 * @date 2022/6/22 21:14
 */
@SpringBootApplication
// 不加这个  读取不到正确的nacos地址，不知道咋回事，以后有空可以去掉研究一下
@EnableNacosDiscovery(globalProperties = @NacosProperties(serverAddr = "192.168.0.130:8848"))
public class NacosConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(NacosConsumerApplication.class, args);
    }

}
